<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录/注册 - 图文视频社交App</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="components.css">
    <style>
        .login-container {
            min-height: 100vh;
            background: linear-gradient(to bottom right, #ff2d55, #ff385c, #ff6b81);
            display: flex;
            flex-direction: column;
        }
        
        .login-logo {
            width: 80px;
            height: 80px;
            margin: 0 auto;
            background-color: white;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .login-form {
            background-color: white;
            border-radius: 30px 30px 0 0;
            padding: 30px 20px;
            margin-top: 40px;
            flex: 1;
        }
        
        .form-input {
            background-color: #f5f5f5;
            border-radius: 12px;
            padding: 14px 16px;
            width: 100%;
            margin-bottom: 16px;
            border: none;
            font-size: 16px;
        }
        
        .login-button {
            background: linear-gradient(to right, #ff2d55, #ff385c);
            color: white;
            border-radius: 12px;
            padding: 14px;
            width: 100%;
            text-align: center;
            font-weight: 600;
            margin-top: 20px;
            border: none;
            font-size: 16px;
        }
        
        .social-login {
            display: flex;
            justify-content: center;
            margin-top: 30px;
        }
        
        .social-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 10px;
            font-size: 20px;
            color: #333;
        }
        
        .login-tabs {
            display: flex;
            margin-bottom: 30px;
        }
        
        .login-tab {
            flex: 1;
            text-align: center;
            padding: 10px;
            font-weight: 600;
            color: #999;
            border-bottom: 2px solid transparent;
        }
        
        .login-tab.active {
            color: #ff2d55;
            border-bottom-color: #ff2d55;
        }
    </style>
</head>
<body>
    <!-- 状态栏 -->
    <div class="status-bar">
        <div class="status-bar-time">14:30</div>
        <div class="status-bar-icons">
            <i class="fas fa-signal"></i>
            <i class="fas fa-wifi"></i>
            <i class="fas fa-battery-full"></i>
        </div>
    </div>

    <div class="login-container">
        <div class="pt-10 pb-5 px-5">
            <div class="login-logo">
                <i class="fas fa-camera text-pink-600 text-4xl"></i>
            </div>
            <div class="text-center text-white mt-5">
                <div class="text-2xl font-bold">图文视频社交App</div>
                <div class="text-sm mt-2 opacity-80">分享生活，发现精彩</div>
            </div>
        </div>
        
        <div class="login-form">
            <div class="login-tabs">
                <div class="login-tab active">登录</div>
                <div class="login-tab">注册</div>
            </div>
            
            <form>
                <input type="text" placeholder="手机号/用户名/邮箱" class="form-input">
                <div class="relative">
                    <input type="password" placeholder="密码" class="form-input">
                    <i class="fas fa-eye absolute right-4 top-4 text-gray-400"></i>
                </div>
                
                <div class="flex justify-between text-sm mb-5">
                    <div class="flex items-center">
                        <input type="checkbox" id="remember" class="mr-2">
                        <label for="remember" class="text-gray-600">记住我</label>
                    </div>
                    <div class="text-pink-600">忘记密码？</div>
                </div>
                
                <button class="login-button">登录</button>
                
                <div class="text-center text-gray-500 text-sm mt-6 mb-4">
                    其他登录方式
                </div>
                
                <div class="social-login">
                    <div class="social-icon">
                        <i class="fab fa-weixin text-green-500"></i>
                    </div>
                    <div class="social-icon">
                        <i class="fab fa-qq text-blue-500"></i>
                    </div>
                    <div class="social-icon">
                        <i class="fab fa-weibo text-red-500"></i>
                    </div>
                </div>
                
                <div class="text-center text-xs text-gray-500 mt-8">
                    登录即表示同意 <span class="text-pink-600">用户协议</span> 和 <span class="text-pink-600">隐私政策</span>
                </div>
            </form>
        </div>
    </div>

    <script src="app.js"></script>
    <script>
        // 处理登录/注册选项卡切换
        const loginTabs = document.querySelectorAll('.login-tab');
        loginTabs.forEach(tab => {
            tab.addEventListener('click', function() {
                loginTabs.forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                
                // 更新表单标题和按钮文字
                const isLogin = this.textContent === '登录';
                const button = document.querySelector('.login-button');
                button.textContent = isLogin ? '登录' : '注册';
            });
        });
    </script>
</body>
</html>